package com.pop.Demo02;
//学生生类
public class Student {
    //属性；字段
    String name;//null
    int age;//0

    //方法
    public void study(){
        System.out.println(this.name+"在学习");
    }
}
/**
 *  //类是抽象的，要实例化
 *         //类实例化后会返回一个自己的对象
 *         //student对象就是一个Student类的具体实例！
 *         Student student =new  Student();
 *         Student xiaoming =new  Student();
 *         xiaoming.name="小明";
 *         System.out.println(xiaoming.name);
 */